<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>

  <script>
    function Parent(name) {
      this.name = name
    }
    const fdt = new Parent()

    console.log(fdt.constructor === Parent)
    console.log(fdt.__proto__ === Parent.prototype)
    console.log(Parent.constructor === Function)
    console.log(Function.constructor === Function)
    console.log(Function.prototype.__proto__ === Object.prototype)
    console.log(Object.prototype)
    console.log(null === Object.prototype.prototype)


    console.log(fdt)


    const person1 = {
        name: 'cyl',
        sex: 'male'
    }
    const person2 = Object.create(person1)

    console.log(person2.__proto__ === person1)
    console.log(person2.__proto__ === person1.prototype)
    console.log(person2.constructor)
    console.log(person2.constructor ===Object)
    console.log(person2.constructor === person1.prototype)
    console.log(person2.constructor === Function)
    console.log(person1.prototype === Function)
    console.log(person1.prototype === Function.prototype)
    console.log(person1)
  </script>
</body>

</html>
